<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视频全屏</title>
    <style>
        .diva{
            width: 100%;
            height: 200px;
        }
        .videoM{
            width: 100%;
            height: 100%;
            object-fit: auto;
        }

        .video-container {
            position: fixed;
            width: 100vmax;
            height: 100vmin;
            transform: rotate(90deg) translateY(-100vmin);
            transform-origin: top left;
        }
    </style>
</head>
<body>
    <div class="diva">
        <video id="video" class="" width="100%" height="200px" x5-video-player-type="h5" x5-video-orientation="landscape" x5-video-player-fullscreen="true" src="https://video-static.lotsmall.cn/video/20250727/2025072722420176enbu.mp4" controls></video>
        <button id="open">全屏播放</button>
    </div>
    <script>
        document.getElementById('open').onclick = function() {
            // alert(12)
            // window.setWindowSystemBarEnable([])
            // document.getElementById('video').style.width = `${window.innerHeight}px`;
            // document.getElementById('video').style.height = `${window.innerWidth}px`;
            document.getElementById('video').requestFullScreen();
        }
    </script>
</body>
</html>